import matplotlib
matplotlib.use('TkAgg')
import  matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
sns.set_style('darkgrid')

# 中文乱码
# plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['font.sans-serif'] = ['Heiti TC']

tips = pd.read_csv('./data/tips.csv')
# sns.regplot(x='total_bill',y='tip',data=tips,color='r')
# 绘制回归模型，描述线性关系
sns.lmplot(x='total_bill',y='tip',data=tips)
plt.show()
